/*
 * 饿汉式：在类加载时直接创建实例，线程安全
 * 问题：可能导致资源浪费
 */
public class Singleton_ehan {
    private static final Singleton_ehan mInstance = new Singleton_ehan();
    private Singleton_ehan(){}

    public static Singleton_ehan getInstance(){
        return mInstance;
    }
}
